ViewDataDictionary<TModel>
Assembly: ServiceStack.Razor.dll
View Source
Declaration
public class ViewDataDictionary<TModel> : ViewDataDictionary, IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable
Properties
Model
View Source
Declaration
public TModel Model { get; set; }
ModelMetadata
View Source
Declaration
public override ModelMetadata ModelMetadata { get; set; }
Inherited Properties
Count
View Source
Declaration
public int Count { get; }
IsReadOnly
View Source
Declaration
public bool IsReadOnly { get; }
Item[String]
View Source
Declaration
public object this[string key] { get; set; }
Keys
View Source
Declaration
public ICollection<string> Keys { get; }
Model
View Source
Declaration
public object Model { get; set; }
ModelMetadata
View Source
Declaration
public virtual ModelMetadata ModelMetadata { get; set; }
ModelState
View Source
Declaration
public ModelStateDictionary ModelState { get; }
TemplateInfo
View Source
Declaration
public TemplateInfo TemplateInfo { get; set; }
Values
View Source
Declaration
public ICollection<object> Values { get; }
Methods
SetModel(Object)
View Source
Declaration
protected override void SetModel(object value)
Parameters
Type | Name |
---|---|
System.Object | value |
Inherited Methods
Add(KeyValuePair<String, Object>)
View Source
Declaration
public void Add(KeyValuePair<string, object> item)
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<System.String,System.Object> | item |
Add(String, Object)
View Source
Declaration
public void Add(string key, object value)
Parameters
Type | Name |
---|---|
System.String | key |
System.Object | value |
AsRaw()
View Source
Declaration
public MvcHtmlString AsRaw()
Returns
ServiceStack.Html.MvcHtmlString
AsRawJson()
View Source
Declaration
public MvcHtmlString AsRawJson()
Returns
ServiceStack.Html.MvcHtmlString
Clear()
View Source
Declaration
public void Clear()
Contains(KeyValuePair<String, Object>)
View Source
Declaration
public bool Contains(KeyValuePair<string, object> item)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<System.String,System.Object> | item |
ContainsKey(String)
View Source
Declaration
public bool ContainsKey(string key)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
CopyTo(KeyValuePair<String, Object>[], Int32)
View Source
Declaration
public void CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<System.String,System.Object>[] | array |
System.Int32 | arrayIndex |
Eval(String)
View Source
Declaration
public object Eval(string expression)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.String | expression |
Eval(String, String)
View Source
Declaration
public string Eval(string expression, string format)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | expression |
System.String | format |
GetEnumerator()
View Source
Declaration
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String,System.Object>>
GetViewDataInfo(String)
View Source
Declaration
public ViewDataInfo GetViewDataInfo(string expression)
Returns
ServiceStack.Html.ViewDataInfo
Parameters
Type | Name |
---|---|
System.String | expression |
PopulateModelState()
View Source
Declaration
public virtual void PopulateModelState()
Remove(KeyValuePair<String, Object>)
View Source
Declaration
public bool Remove(KeyValuePair<string, object> item)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<System.String,System.Object> | item |
Remove(String)
View Source
Declaration
public bool Remove(string key)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
SetModel(Object)
View Source
Declaration
protected virtual void SetModel(object value)
Parameters
Type | Name |
---|---|
System.Object | value |
IEnumerable.GetEnumerator()
View Source
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
TryGetValue(String, out Object)
View Source
Declaration
public bool TryGetValue(string key, out object value)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
System.Object | value |
Implements
System.Collections.Generic.IDictionary<System.String,System.Object>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.Object>>
System.Collections.IEnumerable